<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml"> 
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

        <script type="text/javascript"
                src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">
        </script>
        <script type="text/javascript"
                src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js">
        </script>

        <?php $baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl(); ?>
        <script type="text/javascript"
                src="<?php echo $baseUrl ?>/minify/?g=js">
        </script>
        <link   rel="stylesheet"
                type="text/css"
                href="<?php echo $baseUrl ?>/minify/?g=css">
        </link>

        <!--
        <link rel="search"
              type="application/opensearchdescription+xml"
              title="ES Search: MW"
              href="<?php echo $baseUrl ?>/opensearch/mw.xml">
        </link>
        -->


        <?php
        if ( isset($this->index) && $this->index == false ){
            ?><meta name="robots" content="noindex" /><?php
        }
        if ( isset($this->title) ) { //Set from within the controller
            $this->headTitle($this->title);
        }

        $this->headTitle('ES Search');
        $this->headTitle()->setSeparator(' | ');

        echo $this->headTitle()
        ?>

        <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-21602422-1']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();
        </script>
    </head>

    <body>
        <noscript>
            <div id="noscriptWarning">
                ES Search works best with JavaScript enabled
            </div>
            <div id="noscriptPadding">
                &nbsp;
            </div>

        </noscript>


        <div id="header">
            <a href="<?php echo $this->url( array(
                                                'controller'=>'index',
                                                'action' => null
                                            ),
                                            'default')?>">
                ES Search</a>
        </div>

        <div style="margin: 5px 0 20px;">
            <div class="line"></div>
        </div>

        <div id="content">
            <?php echo $this->layout()->content ?>
        </div>

        <div id="recentSearch">

            <div style="margin:5px 0">
                <div class="line"></div>
            </div>

            <div style="white-space:nowrap; overflow: hidden;">
                Recent Searches: <?php echo $this->recentSearches() ?>
            </div>

            <div style="margin: 5px 0 20px;">
                <div class="line"></div>
            </div>
        </div>

        <div id="footer">
            <div>
                <a href="<?php echo $this->url(
                        array('controller'=>'info','action' => 'about'),
                        'default'
                )?>"> About </a> -
                <a href="<?php echo $this->url(
                        array('controller'=>'info','action' => 'credits'),
                        'default'
                )?>"> Credits </a> -
                <a href="<?php echo $this->url(
                        array('controller'=>'info','action' => 'bug'),
                        'default'
                )?>"> Report Bug </a> -
                <a href="<?php echo $this->url(
                        array('controller'=>'info','action' => 'feature'),
                        'default'
                )?>"> Request Feature </a> <!-- -
                <a href="<?php echo $this->url(
                        array('controller'=>'mod','action' => 'add'),
                        'default'
                )?>"> Add Mod </a>
                                           -->
            </div>

            <div id="cpy">
                Design Copyright &copy; Jacob Essex 2011.
                Mod details and descriptions are owned by its author(s)
            </div>
        </div>


    </body>

</html>